<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib" template="/themes/default/view-template.xhtml">
	
	<ui:define name="folders">
		<c:forEach items="#{tree.current.childList}" var="folder">
			<rich:tab id="#{folder.id}TP" 
				name="#{folder.id}TP"
				label="#{folder.text} (#{folder.childCount})" 
				rendered="#{folder.rendered}"
				eventsQueue="viewQ">
					
				<ui:include src="../default/#{folder.viewPanel}">
					<ui:param name="id" value="#{folder.id}"/>
				</ui:include>

			</rich:tab>
		</c:forEach>
	</ui:define>
</ui:composition>